VER = 1.0

all:	docs	package

clean:	
	rm -f README.* *.tmp index.html ../dist/* 	

release:	../dist/jogcast-${VER}.tar.gz ../dist/jogcast-${VER}.zip README.html index.html
	scp $^ roub@roub.net:/home/roub/public_html/apps/jogcast

docs:	README.txt	README.html	index.html

package:	../dist/jogcast-${VER}.tar.gz ../dist/jogcast-${VER}.zip

../dist/jogcast-${VER}.tar.gz:	README.txt README.html \
	jogcast.pl splitter.pm \
	finished.mp3 jog.mp3 run.mp3 walk.mp3
	tar czvf $@ $^

../dist/jogcast-${VER}.zip:	README.txt README.html \
	jogcast.pl splitter.pm \
	finished.mp3 jog.mp3 run.mp3 walk.mp3
	zip -9u $@ $^

README.txt:	jogcast.pl
	pod2text $< > $@

README.html:	jogcast.pl
	pod2html $< > $@

index.html:	index-in.html
	sed -e 's/JCVER/${VER}/g' $< > $@


